<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>搜索结果</title>
    <link rel="shortcut icon" href="/favicon.ico">
    <link rel="stylesheet" href="/static/swiper/swiper-bundle.min.css">
    <link rel="stylesheet" href="/static/bootstrap/css/bootstrap.css">
</head>
<body>
<#include "nav.ftl">
<div class="container">
    <#list books![] as book>
    <div class="row">
        <div class="col-">
            <a href="/details?id=${book.id}">
            <img src="upload/book/${book.imgs?eval[0]?replace(".","160_160.")}">
            </a>
            <h3>${book.name}</h3>
            <p>${book.author}</p>
            <a href="/shopbag?action=add&id=${book.id}" class="btn btn-sm btn-danger">加入购物车</a>
        </div>
    </div>
        <#else>
    <div class="row">
        <div class="col">没有相关的书籍</div>
    </div>
    </#list>
    <hr>
    <div class="row">
        <div class="col">
        ${pageinfo}</div>
    </div>
</div>
<hr>

<#include "link.ftl">
</body>
</html>